<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/competence.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/competence.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="competence_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __competence_h__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __competence_h__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="constante_8h.html">constante.h</a>&quot;</span>
<a name="l00010"></a>00010 
<a name="l00015"></a><a class="code" href="structCompetence.html">00015</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00016"></a>00016 {
<a name="l00017"></a><a class="code" href="structCompetence.html#ac08757feea2901efaf359753ede48fef">00017</a>     <span class="keywordtype">char</span> action [30];   
<a name="l00018"></a><a class="code" href="structCompetence.html#a17afe9783679c6ea9768460f935393d2">00018</a>     <span class="keywordtype">char</span> <a class="code" href="structCompetence.html#a17afe9783679c6ea9768460f935393d2">type</a>;          
<a name="l00019"></a><a class="code" href="structCompetence.html#a3304a0e92cabdcfb2f3455e03dc95cf5">00019</a>     <span class="keywordtype">int</span> <a class="code" href="structCompetence.html#a3304a0e92cabdcfb2f3455e03dc95cf5">experience</a>;     
<a name="l00020"></a><a class="code" href="structCompetence.html#af0ac418d2f45ea1dcab033d5afbedae8">00020</a>     <span class="keywordtype">char</span> <a class="code" href="structCompetence.html#af0ac418d2f45ea1dcab033d5afbedae8">bonusatt</a>;      
<a name="l00021"></a><a class="code" href="structCompetence.html#aa9a75be95deae2daee6263fc365d1e4b">00021</a>     <span class="keywordtype">char</span> <a class="code" href="structCompetence.html#aa9a75be95deae2daee6263fc365d1e4b">bonusdef</a>;      
<a name="l00022"></a><a class="code" href="structCompetence.html#a39a5c516d511009395d1b8fd856cc0fa">00022</a>     <span class="keywordtype">char</span> <a class="code" href="structCompetence.html#a39a5c516d511009395d1b8fd856cc0fa">bonusint</a>;      
<a name="l00023"></a><a class="code" href="structCompetence.html#a65777c2a2ae6cdd3efeb747869e80c27">00023</a>     <span class="keywordtype">char</span> <a class="code" href="structCompetence.html#a65777c2a2ae6cdd3efeb747869e80c27">bonusagi</a>;      
<a name="l00024"></a><a class="code" href="structCompetence.html#a3f0455c76ee42077c072ded4d0cac226">00024</a>     <span class="keywordtype">char</span> <a class="code" href="structCompetence.html#a3f0455c76ee42077c072ded4d0cac226">bonuschar</a>;     
<a name="l00025"></a>00025 }<a class="code" href="structCompetence.html">Competence</a>;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="competence_8c.html#abbe65b0b1c38b6f1c0b6fdeb91c2a54b" title="Preconditions : comp n&#39;a pas déjà été initialisée ; 0&lt;type&lt;30   Postconditions : comp est initialisée...">compInit</a> (<a class="code" href="structCompetence.html">Competence</a> *comp, <span class="keyword">const</span> <span class="keywordtype">char</span> type, <span class="keyword">const</span> <span class="keywordtype">int</span> experience);
<a name="l00034"></a>00034 
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="competence_8c.html#a4336509e0e70511211d505f2ea9b9c21" title="Preconditions : comp est initialisée   Postconditions : copie dans action l&#39;action correspondant à la...">getAction</a> (<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp, <span class="keywordtype">char</span>* action);
<a name="l00040"></a>00040 
<a name="l00045"></a>00045 <span class="keywordtype">char</span> <a class="code" href="competence_8c.html#aa4292e39d88288aa461d0a6baa37a52d" title="Preconditions : comp est initialisée   Postconditions : retourne le type de la compétence comp...">getType</a>(<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp);
<a name="l00046"></a>00046 
<a name="l00051"></a>00051 <span class="keywordtype">int</span> <a class="code" href="competence_8c.html#a9853c5edbd6e2eb9b0f0590efbfb6e5e" title="Preconditions : comp est initialisée   Postconditions : retourne l&#39;experience liée à la compétence co...">getExperience</a>(<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp);
<a name="l00052"></a>00052 
<a name="l00057"></a>00057 <span class="keywordtype">char</span> <a class="code" href="competence_8c.html#a7cb623f852c2ceb5ee1885d0ae45ebfc" title="Preconditions : comp est initialisée   Postconditions : retourne le bonus d&#39;attaque de la compétence ...">getBonusatt</a>(<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp);
<a name="l00058"></a>00058 
<a name="l00063"></a>00063 <span class="keywordtype">char</span> <a class="code" href="competence_8c.html#a46c953591a523e010c41ab266acdff72" title="Preconditions : comp est initialisée   Postconditions : retourne le bonus de defense de la compétence...">getBonusdef</a>(<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp);
<a name="l00064"></a>00064 
<a name="l00069"></a>00069 <span class="keywordtype">char</span> <a class="code" href="competence_8c.html#abf4c1d9c62fb96fd744b8c6c37731217" title="Preconditions : comp est initialisée   Postconditions : retourne le bonus d&#39;intelligence de la compét...">getBonusint</a>(<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp);
<a name="l00070"></a>00070 
<a name="l00075"></a>00075 <span class="keywordtype">char</span> <a class="code" href="competence_8c.html#a8a1c04c70c71725cfc346490993720a8" title="Preconditions : comp est initialisée   Postconditions : retourne le bonus d&#39;agilité de la compétence ...">getBonusagi</a>(<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp);
<a name="l00076"></a>00076 
<a name="l00081"></a>00081 <span class="keywordtype">char</span> <a class="code" href="competence_8c.html#a8195fa822febd6edf24c54da8f9bd103" title="Preconditions : comp est initialisée   Postconditions : retourne le bonus de charisme de la compétenc...">getBonuschar</a>(<span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp);
<a name="l00082"></a>00082 
<a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="competence_8c.html#ac4c31f6e55f3c6cb9f0f44864fa58a57" title="Preconditions : comp est initialisée   Postconditions : la valeur experience est ajoutee au champ exp...">compExp</a> (<a class="code" href="structCompetence.html">Competence</a> *comp, <span class="keyword">const</span> <span class="keywordtype">int</span> experience);
<a name="l00088"></a>00088 
<a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="competence_8c.html#ad69220f6870cce882b944d89705f6c08" title="Preconditions : comp2 est initialisée, pas comp1 (sauf si on veut écraser)   Postconditions : comp2 e...">copieCompetence</a>(<a class="code" href="structCompetence.html">Competence</a> *comp1, <span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a> *comp2);
<a name="l00094"></a>00094 
<a name="l00099"></a>00099 <span class="keywordtype">int</span> <a class="code" href="competence_8c.html#a43a645188e29dfd4c7c24a845dec8094" title="Preconditions : /   Postconditions : teste les fonctions du module Competence.">mainCompetence</a>();
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
